package psn.zjk.netty;


import java.io.IOException;
import java.nio.channels.Pipe;
import java.nio.channels.SelectionKey;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.nio.channels.spi.AbstractSelector;
import java.util.concurrent.*;

public class Application {

    public static void main(String[] args) throws IOException, ExecutionException, InterruptedException {
//        ServerSocketChannel open = ServerSocketChannel.open();
//        SocketChannel accept = open.bind(null).accept();
//        AbstractSelector abstractSelector = accept.provider().openSelector();
//        int select = abstractSelector.select();
//        SelectionKey.OP_ACCEPT
        FutureTask<String> stringFutureTask = new FutureTask<>(() -> {
            return null;
        });
        new Thread(stringFutureTask).start();
        String s = stringFutureTask.get();

    }
	
}
